* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.2em;
}

.video-info {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.poster img {
    width: 300px;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.details {
    flex: 1;
}

.details p {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.player-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.player-section h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.video-container {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.episodes {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.episodes h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.episode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.episode-btn {
    padding: 10px;
    border: 2px solid #3498db;
    background: white;
    color: #3498db;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.episode-btn:hover {
    background: #3498db;
    color: white;
}

.episode-btn.active {
    background: #2980b9;
    border-color: #2980b9;
    color: white;
}

@media (max-width: 768px) {
    .video-info {
        flex-direction: column;
    }

    .poster img {
        width: 100%;
        height: auto;
    }

    .episode-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }
}

/* 错误消息样式 */
.error-message {
    text-align: center;
    padding: 40px;
    color: #ff4b5c;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.error-message i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.error-message button {
    margin-top: 15px;
    padding: 10px 20px;
    background: #6a11cb;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.error-message button:hover {
    background: #2575fc;
}

/* 加载指示器 */
.vjs-loading-spinner {
    display: none !important;
}

/* 自定义播放器控件 */
.video-js .vjs-big-play-button {
    background: rgba(106, 17, 203, 0.8) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 80px !important;
    height: 80px !important;
    line-height: 80px !important;
    margin-left: -40px !important;
    margin-top: -40px !important;
}

.video-js .vjs-big-play-button:hover {
    background: rgba(37, 117, 252, 0.9) !important;
}

/* 视频容器样式 */
.video-container {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    min-height: 400px; /* 确保有最小高度 */
}

/* 错误消息样式 */
.error-message {
    text-align: center;
    padding: 40px;
    color: #ff4b5c;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
}

.error-message i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.error-message button {
    margin-top: 15px;
    padding: 10px 20px;
    background: #6a11cb;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.error-message button:hover {
    background: #2575fc;
}

/* 快进/快退提示 */
.seek-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 24px;
    font-weight: bold;
    z-index: 1000;
    display: none;
    pointer-events: none;
    animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
    30% {
        transform: translate(-50%, -50%) scale(1);
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* 确保视频元素可以获得焦点 */
.video-js:focus {
    outline: 2px solid #ff4b5c;
    outline-offset: 2px;
}

/* 快捷键提示 */
.shortcut-hint {
    position: absolute;
    bottom: 60px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 100;
}

.shortcut-hint p {
    margin: 2px 0;
}
/* 或者更具体的选择器 */
#my-video {
    width: 100% !important;
    height: 400px !important;
}
